Distributing Python script

Kinja'd!!! "DC3 LS, Fuck Hyundai, now and forever" (eg6)
06/30/2019 at 15:33 • Filed to: None

Kinja'd!!!1 Kinja'd!!! 9

So I wrote that little script that picks a random car (weighting the Opponess of the car). My question is the easiest way to distribute it to y’all, so that it’ll as easy as possible for y’all to run and play with . It uses an external library Beautiful S oup, which I don’t know how you’d install on Windows, since I just did one command on linux to install it. A nd it also prints out a link to the winner in terminal, which could be a PITA for windows users. Although some googling shows that in windows 10 you can now copy and paste from command prompt.

Basically what would be the easiest way for me to share it that would allow windows users to run it with the least amount of effort?

Pic is another car it chose.

Kinja'd!!!

I told you it was good.

Link

!!! UNKNOWN CONTENT TYPE !!!


DISCUSSION (9)


Kinja'd!!! Full of the sound of the Gran Fury, signifying nothing. > DC3 LS, Fuck Hyundai, now and forever
06/30/2019 at 15:51

Kinja'd!!!2

I’d say a PDF...

Kinja'd!!!

Kinja'd!!!

Kinja'd!!!

Python script, you say? 

Sorry - feeling a little goofy right now...


Kinja'd!!! Aremmes > DC3 LS, Fuck Hyundai, now and forever
06/30/2019 at 17:49

Kinja'd!!!3

You should look into packaging your script into a PIP package, that way installing on Windows would be as simple as on Linux.

The Windows command prompt has had copy /paste functionality since the early versions of NT at least, BTW.


Kinja'd!!! Echo51 > DC3 LS, Fuck Hyundai, now and forever
06/30/2019 at 18:04

Kinja'd!!!0

Rewrite it into a proper language? :P joke aside, a rewrite or package into something accessible as a website is hands down the easiest in my opinion.


Kinja'd!!! TheRealBicycleBuck > DC3 LS, Fuck Hyundai, now and forever
06/30/2019 at 18:18

Kinja'd!!!0

Perhaps you could package it up for Github?


Kinja'd!!! DC3 LS, Fuck Hyundai, now and forever > Echo51
06/30/2019 at 18:39

Kinja'd!!!0

I’m not doing Javascript  again , maybe PHP or something? I’ll give the PIP thing a try. 


Kinja'd!!! Forrest > DC3 LS, Fuck Hyundai, now and forever
06/30/2019 at 20:55

Kinja'd!!!0

I think finding a way to expose this as a website would work better than having people install it locally. In my limited experience with web programming, I have Flask library in Python is good for making a basic web frontend for a Python codebase when you're not in the mood for JavaScript.


Kinja'd!!! DC3 LS, Fuck Hyundai, now and forever > Forrest
06/30/2019 at 23:57

Kinja'd!!!0

I’ll try and give that a shot if I have the time. 


Kinja'd!!! Echo51 > DC3 LS, Fuck Hyundai, now and forever
07/01/2019 at 10:08

Kinja'd!!!0

PHP sure, it’s my go-to for programming something quickly since i’m used to dealing with that, but need to learn to do JS things for dynamic stuff/interactions


Kinja'd!!! Nauraushaun > DC3 LS, Fuck Hyundai, now and forever
07/02/2019 at 22:34

Kinja'd!!!0

Definitely the website approach, Firebase maybe for easy hosting. It worked for bag of dicks , it’ll work for you